package com.miracle9.game.entity;

import javax.persistence.Entity;

@Entity
public class PayApply extends BaseEntity {

    private String datetime;
    private int ammount;
    private int userId;
    private String remark;
    private PayApplyState state;
    private long timeout;
    //0玩家，1代理
    private int userType;
    //0充值，1兑换
    private int type;
    private boolean notice;
    public static final int PAY = 0;
    public static final int EXPIRY = 1;
    public static final int USER = 0;
    public static final int PROMOTER = 1;

    public PayApply() {
    }

    public static enum PayApplyState {
        PENDING, HANDLED, WAIVE;
    }

    public static enum PayApplyType {
        PAY, EXPIRY;
    }

    public static enum PayApplyUserType {
        PLAYER, PROMOTER;
    }

    public PayApply(String datetime, int ammount, int userId, String remark, PayApplyState state, long timeout, int userType, int type, boolean notice) {
        this.datetime = datetime;
        this.ammount = ammount;
        this.userId = userId;
        this.remark = remark;
        this.state = state;
        this.timeout = timeout;
        this.userType = userType;
        this.type = type;
        this.notice = notice;
    }

    public PayApplyState getState() {
        return this.state;
    }

    public void setState(PayApplyState state) {
        this.state = state;
    }

    public int getUserType() {
        return this.userType;
    }

    public void setUserType(int userType) {
        this.userType = userType;
    }

    public int getType() {
        return this.type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public boolean isNotice() {
        return this.notice;
    }

    public void setNotice(boolean notice) {
        this.notice = notice;
    }

    public String getDatetime() {
        return this.datetime;
    }

    public void setDatetime(String datetime) {
        this.datetime = datetime;
    }

    public int getAmmount() {
        return this.ammount;
    }

    public void setAmmount(int ammount) {
        this.ammount = ammount;
    }

    public int getUserId() {
        return this.userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public long getTimeout() {
        return this.timeout;
    }

    public void setTimeout(long timeout) {
        this.timeout = timeout;
    }

    public String toString() {
        return "PayApply [datetime=" + this.datetime + ", ammount=" + this.ammount + ", userId=" + this.userId + ", remark=" + this.remark + ", state=" + this.state + ", timeout=" + this.timeout + ", userType=" + this.userType + ", type=" + this.type + ", notice=" + this.notice + "]";
    }

}
